import logging.handlers

LOG_FILE = 'weex_sell_buy.log'


handler =logging.handlers.TimedRotatingFileHandler(LOG_FILE, when='D', interval=1, backupCount=50)

logger = logging.getLogger(__name__)
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)



logger.debug('debug message2')
logger.info('info message2')
logger.warn('warn message2')
logger.error('error message2')
logger.critical('critical message2')
